I always make a deep, serious voice to talk to my kids when they had done something wrong, too naughty, or out of control.
I make sure they know what they did make me upset and angry. But I try to not to hit them, otherwise, they just remember I hit them, but not the reason why I was upset and angry.