Probing coherent quantum thermodynamics using a trapped ion