Remember that lenses change their effective focal length not only when being zoomed, but also as soon as you set their focus distance closer than infinity. So the EF-S 15-85 mm f/3.5-5.6 IS USM isn't at all any 85 mm any longer, when zoomed max out and then focused at closest range.
This is true also for prime lenses. Especially when they can focus at short distances. The EF-S 60 mm macro f/2.8 USM is significantly shorter than 60 mm when focused at its closest range, which is 19 cm.
The technical reason for this is that the larger extension of the optical system from the camera you get, the more light do you loose. You have to extend the optical system from the camera to focus closer, either by simply moving the whole lens system physically or by doing some internal optical focusing trick to achieve the same result. So the 60 mm macro has to open up beyond the f/2.8 aperture size to effectively remain an f/2.8 lens when focused closer than infinity. Obviously it can't, since the aperture blades would have to range outside the lens barrel.
But by using an optical trick it can reduce its focal length when focusing close up. The aperture's physical size is 60 mm/2.8 = 21 mm. When focusing at 1:1 scale, you normally loose two f-stops, thus making the lens an f/5.6 one. But since the physical size of an f/5.6 aperture is 60 mm/5.6 = 10.5 mm, we can "make" that an f/2.8 aperture if we reduce the focal length to 30 mm. Then we get 30 mm/10.5 mm = 2.8, and thus we are back where we started.
The same applies to normal lenses, primes as well as zooms, but it's not so obvious with them, since they normally do not allow focusing at such close distances.
If you instead put a 60 mm extension ring (just an empty barrel, not any tele-photo focal length extender with optics inside) on a 60 mm lens, with the lens still focused at infinity, you get a reproduction scale of 1:1 again. But now the lens is still set at infinity, so it does not change its focal length. Thus your f/2.8 is now effectively an f/5.6 lens. The camera will still tell you it can open to f/2.8, but instead it looks like the light available has been reduced to one quarter of what it was before the extension ring was mounted.