Forum:D.Prison Vs. Ulti gear golem Vs. Skill Drain

If I have a face-up skill drain and a set Dimensional Prison and my opponents has a face-up Ultimate Ancient Gear Golem and he attacks with it. can I activate Dimensional prison to remove it from play?? and he wont summon an Ancient Gear Golem because he was removed from play instead of being destroyed....right?? please help...