Place it as the punchline immediately after the fail is shown, then follow it with a low sad trombone or a quiet record scratch to let the moment settle. Keep it as the final reaction in a short sequence, after a build-up sound, so it closes the joke instead of starting it.