Remember this? Well, maybe not exactly like this, but I bet somehow you WERE punished when you were growing up. My memories are not pleasant, but I did learn and I guess that is the point. Here are a few verses from the Bible on the subject.
Proverbs 13:24 (WEB)
24) One who spares the rod hates his son, but one who loves him is careful to discipline him.
Proverbs 3:11 (WEB)
11) My son, don’t despise Yahweh’s discipline, neither be weary of his reproof:
2 Timothy 3:16 (WEB)
16) Every Scripture is God-breathed and profitable for teaching, for reproof, for correction, and for instruction in righteousness,
No matter how its done, no matter who does it discipline should be meant to teach. Today, if you use corporal punishment, society says you are WRONG, but reread the first verse. It is meant to be used with LOVE, to TEACH!!! God teaches too, sometimes by circumstance, but most often by HIS WORD, which addresses every aspect of learning. Maybe, if we think about it long enough we will learn God's ways are the best ways. If so, our time out is time well spent!!!