The text is an idiom that means what is good for one type is equally good for another type, typically in reference to men and women. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
What ' s good for the goose is good for the gander .