If it is a CD/DVD try booting whilst holding down the eject key on an extended keyboard or holding down the mouse button (left on two button mouse)
This will force the drive to do an eject which may get the problem cleared.
I don't suggest putting anything into the slot as you could end up doing some damage that may not be repairable without replacing the drive.