I only did this with Knuckles, it didn't work with anyone else. At the checkpoint with the block in front of it, push the block and jump on it. Crouch the whole time it's going down, and when you get to the spring, you fall through and skip a ton of the level!
EDIT: Also its on Ice Cap 1 in Sonic 3.