Place it right after the visible failure in your edit, then follow it with SpongeBob Sad Song to stretch the joke into a longer gag. For a sharper contrast, open with a confident moment first, then cut to this line as the payoff.