This is the right way to do something.
You already did it? You did the right way, or a great way.
That's a great way to do it. Well done!
Note, we often use it sarcastically, to mean that someone did something wrong.
"You told my wife about the party? Way to go, Damon. Now she knows where I am going."