Place it at the end of a failed-plan sequence, after the setup has played out and the result is clear. Follow it with a laugh to close the sequence, or a game-show correct-answer sting when the failure turns into an unexpected win.