You might say something like this if you just learned something surprising, particularly if it's something contrary to what you previously believed. It implies that you were foolish in your previous belief, so it's a colorful way of saying "Call me a fool (or any other silly-sounding thing), I admit I was mistaken." A similar one is "Shut my ... More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.