Place it at the end of a fail sequence, just after the losing moment is clear, then follow it with a ba dum tss sting to close the joke. For a longer edit, put a directed by Robert B. Weide sting after it to turn the loss into a credits-style ending.