The text plays on the literal meaning of 'straddle the fence' as physically sitting on a fence, and the idiomatic meaning of being undecided on issues. The humor arises from the contradictory answer 'yes and no' which aligns with the idiom's meaning of indecision.
Do I straddle the fence on issues ? Well , yes and no . . . .