It's a euphemism for "son of a bitch."
I like this contained expression from a social media comment, because there are many kinds of figs and the fruit fig is very special. There are other figs that are not fruit.