The phrase has various uses, its usually used as a "Fuck you" or a "Fuck off".
Great phrase to start a fight. But the phrase can also be used lightly with no real meaning.
Puši Kurac actually means i love you in the Croatian/Serbian/BiH language, so if you ever want to tell someone "i love you", say "puši kurac" and watch their reaction