Place it at the very end of an edit, after the setup conversation has finished. Follow a failed attempt or an awkward exit with it as the closing beat, or precede it with a short laugh track to underline that the goodbye is meant as a joke.