Ugly Way
As @BartJedrocha said, you could manually code it at the top of your view:
<% raise "Instance variable @somedata not defined" unless defined?(@somedata) %>
You could even take it a step further and make a method in a helper that could take an array as an argument and check that each instance variable in the array is defined and raise an error if not. That's pretty annoying, though, and I haven't seen anyone doing that.
Good Way via Better_Errors Gem
I think a better solution is to only pass a single instance variable from your controller to your view, which is considered a best practice. This will cut down on the opportunities for this type of error to occur.
Additionally, while I try not to recommend code libraries as solutions, this one is so universal in Rails that I think it is acceptable: the Better_Errors gem will result in an error page that clearly lists all instance variables available to your view and would make it trivial to determine whether there is a problem there (notice the lower right section in the picture below).

The live shell will allow you to use REPL to interact with the current state to further investigate issues.
Weird Way via "Verbose" Mode
Lastly, I supposed you could attempt to run Rails in verbose mode. Verbose mode can be set when using Ruby from the command line with the -w flag and will give a warning if you attempted to use an undefined instance variable check out this resource for more. However, we are using Rails and not manually invoking Ruby ourselves, so in order to pass that in, you would probably need to set the environment variable ($VERBOSE=true) in a config file.
defined?to check whether the instance variable has been defined or not. E.g.defined?(@some_data)