A polite curse, based on an old scottish chicken-herder slang saying. Some scottish chicken herders still use this word, although most prefer the newer, shortened version (and it's not "farg")
Oh fargevnegeruby! Me sheep are running down the shire!! Alas!