You can figure this out from a scaling argument. The gravitational constant, G, has dimensions of (length)3(mass)-1(time)-2 or, in shorthand, L3M-1T-2. The speed of light, c, is the universal conversion between time and distance, since it has units of LT-1.
Finally, quantum effects are characterized by Planck's constant h, or more commonly used \hbar, which has units of L2M T-1. If \hbar were zero, quantum effects would not exist, so in the limit that \hbar \rightarrow 0, the length scale where quantum effects becomes important must also go to zero. So our length scale must depend on \hbar to a positive power.
Can you see how to combine \hbar and G to eliminate the mass scale? How about how to combine powers of c with the result to convert time to length units?