The scale of cosmic homogeneity as a standard ruler