A thermodynamic approach to two-variable Ruelle and Selberg zeta functions via the Farey map