The text is likely using the phrase 'funny farm' as a colloquial term for a mental health facility, playing on the idea of a 'farm' where one might expect a fence to be down. However, it does not appear to exploit different meanings of a word or similar-sounding words for humorous effect.
Hmmm , fence must still be down over at the funny farm . . . .