Functional determinants in higher dimensions using contour integrals