Rectangular and polar coordinates have the relation:
from which we get:
Substitute into your problem:
Your contour is a circle, so r=constant, so the integral over r is 0 - we can ignore the dr terms.
Multiply out the rest to get to get
The RHS collapses to
Your integral is for r = 2, and going from 0 to
so it equals