Taking a measurement with the Ruler tool and then selecting Image > Image Rotation> Arbitrary will automatically enter the measurement in the Rotate Canvas dialog box.