Place it as the last beat of a scene, right after the joke lands and before the screen goes dark. For a bigger exit, open with the Dun Dun Dun sound, follow with this farewell, then close with the Door Knocking sound as the character leaves.