The gas-to-dust ratio in the Rho Ophiuchi cloud