The text suggests selecting a spouse based on hearing ('ear') rather than appearance ('eye'), but it does not play on different meanings of a word or similar-sounding words for a humorous effect. It seems to be advice rather than a pun.
Choose a wife rather by your ear than your eye .