What is the most effective way to discipline a child?

What is the most effective way to discipline a child?