Lock him in a room with Amy and wait.
It's the one punishment Sonic has no answer for — he can outrun anything except a conversation he doesn't want to have.