adding debug gems and updating rails version