Place it immediately after the mistake is shown, as the reaction that closes the scene, then follow it with Funny Ha Ha Laugh. For a slower ending, use Directed by Robert B. Weide instead, letting the scolding sit before the credits-style cut.