Place it immediately after the fail or exposed moment, as the closing beat of that scene, then follow it with a laugh track and a dramatic sting so the joke settles before the next clip begins.