This saying is used to show shock or something unbelievable such as "fucking hell" is used. e.g instead of "oh my god!"
"Chris just won £10000" " Rats hammers! how he do it?"